package test4;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) throws Exception{

		ApplicationContext context = new ClassPathXmlApplicationContext("test4/beans.xml");
		TestService m = (TestService)context.getBean("testService");
		
		System.out.println(m.add(5, 7));
	}

}
